{#include file="top.php"#}

<div class="body" >
    <div class="main fl" >
        <div class="crumb" onclick="$('[c1=1]').hide();">
            <a href="{#optimize_url('product', 'invite_list','mtype=1')#}">試用專區</a> &gt;
            <strong>試用邀請</strong>
        </div>
        <div class="ti_box b_box ti_box_try ">
            <div class="hd">
                <h2 class="ir ht" onclick="$('[c1=1]').hide();"><span>試用邀請 TRIAL INVITATION</span></h2>
                <div class="slt" onclick="$('[c1=1]').toggle();">
                    <strong class="tri down"></strong>
                </div>
                <div class="sltbox">
                    <div class="dt" style='cursor:pointer;' href="javascript:void(0);" c1=0 onclick="$('[c1=1]').toggle();">{#if $order==1#}最新邀請{#else if $order==2#}即將結束{#else if $order==3#}人氣邀請{#/if#}</div>
                    <div class="dd" style="display:none" c1=1>
                        <p style='cursor:pointer;' onclick="window.location.href='{#optimize_url('product', 'invite_list', 'mtype=1&order=1')#}'">最新邀請</p>
                        <p style='cursor:pointer;' onclick="window.location.href='{#optimize_url('product', 'invite_list', 'mtype=1&order=2')#}'">即將結束</p>
                        <p style='cursor:pointer;' onclick="window.location.href='{#optimize_url('product', 'invite_list', 'mtype=1&order=3')#}'">人氣邀請</p>
                    </div>

                </div>
            </div>
            <div class="bd" onclick="$('[c1=1]').hide();">
                {#foreach  from=$invite_list item=v key=k#}
                <div class="areabox try">
                    <h2 class="at">試用專區</h2>
                    <div class="lbox">
						<div class="imgbox"><p class="img_p"><a href="{#optimize_url('product', 'invite_inpage', 'mtype=1&pid='|cat:$v.id)#}" class="btn btn_submit"><span><img src="{#$v._photo_url#}"></span></a></p></div>
                        <a class="btn_s btn_b btn_s_v_detail" href="{#optimize_url('product', 'detail', 'mtype=1&pid='|cat:$v.id)#}"><strong>查看產品資料</strong></a>
                    </div>
                    <div class="rbox">
                        <div class="tbox">
                            <table width="100%" border="0" cellpadding="0">
                                <tr>
                                    <td colspan="2" class="tt"><a class="tt" href="{#optimize_url('product', 'invite_inpage', 'mtype=1&pid='|cat:$v.id)#}">{#$v.type_name#}</a></td>
                                </tr>
                                <tr>
                                    <td colspan="2" ><a href="{#optimize_url('product', 'invite_inpage', 'mtype=1&pid='|cat:$v.id)#}">{#$v.name#}</a></td>
                                </tr>
                                <tr>
                                    <td colspan="2"><a href="{#optimize_url('product', 'invite_inpage', 'mtype=1&pid='|cat:$v.id)#}">{#$v.cname#}</a></td>
                                </tr>

                                <tr>
                                <table width="100%" border="0" cellpadding="0">
                                    {#if $v.price#}
                                    <tr class="sep">
                                        <td class="label"><span>：</span>價格</td>
                                        <td>${#$v.price#}</td>
                                    </tr>
                                    {#/if#}
                                    {#if $v.attribute_value1#}
                                    <tr class="sep">
                                        <td class="label"><span>：</span>實際容量</td>
                                        <td>{#$v.attribute_value1#}</td>
                                    </tr>
                                    {#/if#}
                                    {#if $v.capacity_trial#}
                                    <tr class="sep">
                                        <td class="label"><span>：</span>體驗規格</td>
                                        <td>{#$v.capacity_trial#}</td>
                                    </tr>
                                    {#/if#}
                                    {#if $v.body#}
                                    <tr class="sep">
                                        <td class="label"><span>：</span>編輯短評</td>
                                        <td>{#nl2br($v.body)#}</td>
                                    </tr>
                                    {#/if#}
                                    {#if !empty($v.tags)&&!empty($v.tag)#}
                                    <tr class="sep">
                                        <td class="label"><span>：</span>標籤</td>
                                        <td>{#foreach from=$v.tags item=v1 key=k1#}{#if $k1 neq 0#}, {#/if#}<a class="tag_name" href='/search-product/{#trim($v1)#}'>{#$v1#}</a>{#/foreach#}</td>
                                    </tr>
                                    {#/if#}
                                    <tr class="sep">
                                        <td class="td_red"><span>：</span>需要分數</td>
                                        <td ><span class="font_red">{#if !empty($v.points)#}{#$v.points#}{#else#}/{#/if#}</span><a href="{#optimize_url('help', 'show','page=4')#}" target="_blank"><i class="icon point"></i></a></td>
                                    </tr>
                                </table>
                                </tr>
                            </table>
                        </div>
                        <div class="infobox">
                            <span class="numbox">
                                <sup>名額</sup><span class="num">{#$v.quota#}</span>&nbsp;
                                {#if $v.apply_num#}<sup>申請人數</sup><span class="num">{#$v.apply_num#}</span>&nbsp; {#/if#}
                                <sup>人氣</sup><span class="num">{#$v.click#}</span>
                            </span><a href="{#optimize_url('product', 'invite_inpage', 'mtype=1&pid='|cat:$v.id)#}" class="btn btn_submit"><span>立即申請</span></a>

                            <div class="info">
                                {#if empty($v._difTime.0)#}
                                <strong class="ir"></strong>
                                {#else#}
                                <span>尚餘</span><strong>{#$v._difTime.0#}</strong><sub>{#$dateArr[$v._difTime.1]#}</sub>
                                {#/if#}
                            </div>

                        </div>

                    </div>
                </div>
                {#/foreach#}
            </div>
        </div>



        <div class="cgbox b_box">
            <div class="hd">
                <h2 class="ir ht"><span>已錯過的邀請</span></h2>
            </div>
            <div class="bd clearfix">
                {#foreach  from=$invite_older_list item=v key=k#}
                <div class="infobox {#if ($k+1)%4==0#}last{#/if#}">
					<div class="imgbox"><p class="img_p"><a href="{#optimize_url('product', 'detail', 'mtype=1&pid='|cat:$v.id)#}"><span><img src="{#$v._photo_url#}"></span></a></p></div>
                    <div class="introbox">
                        <h3 class="it"><a class="it" href="{#optimize_url('product', 'detail', 'mtype=1&pid='|cat:$v.id)#}"/>{#$v.type_name#}</a></h3>
                        <p><a href="{#optimize_url('product', 'detail', 'mtype=1&pid='|cat:$v.id)#}"/>{#$v.name#}</a></p>
                        <p><a href="{#optimize_url('product', 'detail', 'mtype=1&pid='|cat:$v.id)#}"/>{#$v.cname#}</a></p>
                        <a href="{#optimize_url('product', 'detail', 'mtype=1&pid='|cat:$v.id)#}" class="btn_s btn_s_details"><strong>觀看</strong></a>
                    </div>
                </div>
                {#if ($k+1)%4==0 && $k<>15#}<div class="hline"></div>{#/if#}
                {#/foreach#}


                <div class="hline"></div>
            </div>
        </div>
    </div>
    <!-- main-->
    <div class="sidebar">
        {#show_block('b2',1,'','sidebar_ad')#}
        {#show_block('b1',2,'','sidebar_function')#}
        {#show_block('b3',0,'','sidebar_search')#}
        {#show_block('b13',0,'','sidebar_registation')#}
        {#show_block('b4',0,'','sidebar_workshop')#}
        {#show_block('b9',0,'','sidebar_tutorial b_box')#}
        {#show_block('b6',0,'','sidebar_facebook')#}
    </div>
    <!-- sidebar -->

</div>
</div>
</div><!--body-->
{#include file="footer.php"#}